home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1999 / MacHack 1999.toast / The Hacks / FinderHelper / OneClick 2.0 PR3 for MacHack CD / OneClick Folder / Extensions / Scrap Extension / Scrap Extension.rsrc / TEXT_4441_SetScrap.txt < prev    next >
Encoding:
Text File  |  1999-04-08  |  764 b   |  25 lines

  1. SetScrap command
  2.  
  3. Syntax
  4. SetScrap data, resourceType
  5.  
  6. Description
  7. Puts data on the Clipboard as the specified resource type. Use GetScrap and SetScrap instead of the Clipboard system variable when you want to work with data types other than plain text.
  8.  
  9. Examples
  10. SetScrap "just some words", "TEXT"
  11. SetScrap pictData, "PICT"
  12.  
  13. // Get a TEXT/styl (styled text) resource pair from a file and put the styled text on the Clipboard
  14. Variable theText, theStyle, theFile
  15. theFile = "Mac HD:Desktop Folder:My Resource File"
  16. theText = GetResource theFile, "TEXT", 128
  17. theStyle = GetResource theFile, "styl", 128
  18. SetScrap theText, "TEXT"
  19. SetScrap theStyle, "styl"
  20.  
  21. Author Info
  22. SetScrap, part of Scrap Extension
  23. Copyright ¬© 1999 Life OnLine Software (lr). All rights reserved.
  24.  
  25.